﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.mssql
{
	// Token: 0x02000166 RID: 358
	public class TMssqlCommit : TCustomSqlStatement
	{
		// Token: 0x06000C3D RID: 3133 RVA: 0x00307109 File Offset: 0x00305309
		public TMssqlCommit(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmssqlcommit;
		}

		// Token: 0x06000C3E RID: 3134 RVA: 0x0030711D File Offset: 0x0030531D
		internal override void buildsql()
		{
		}

		// Token: 0x06000C3F RID: 3135 RVA: 0x0030711F File Offset: 0x0030531F
		internal override void clear()
		{
		}

		// Token: 0x06000C40 RID: 3136 RVA: 0x00307121 File Offset: 0x00305321
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000C41 RID: 3137 RVA: 0x00307128 File Offset: 0x00305328
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x1700023A RID: 570
		// (get) Token: 0x06000C42 RID: 3138 RVA: 0x0030712A File Offset: 0x0030532A
		// (set) Token: 0x06000C43 RID: 3139 RVA: 0x00307132 File Offset: 0x00305332
		public virtual TObjectName TransactionName
		{
			get
			{
				return this.transactionName;
			}
			set
			{
				this.transactionName = value;
			}
		}

		// Token: 0x1700023B RID: 571
		// (get) Token: 0x06000C44 RID: 3140 RVA: 0x0030713B File Offset: 0x0030533B
		public virtual TSourceToken Trans_or_work
		{
			get
			{
				return this.trans_or_work;
			}
		}

		// Token: 0x06000C45 RID: 3141 RVA: 0x00307144 File Offset: 0x00305344
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TDummy tdummy = (TDummy)this.rootNode;
			base.doParseStatement(psql);
			this.transactionName = (TObjectName)tdummy.node1;
			if (this.transactionName != null)
			{
				this.transactionName.ObjectType = 21;
			}
			this.trans_or_work = tdummy.st1;
			return 0;
		}

		// Token: 0x06000C46 RID: 3142 RVA: 0x003071A2 File Offset: 0x003053A2
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000C47 RID: 3143 RVA: 0x003071B2 File Offset: 0x003053B2
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040012D5 RID: 4821
		private TObjectName transactionName;

		// Token: 0x040012D6 RID: 4822
		private TSourceToken trans_or_work;
	}
}
